<div id="form_example">
    <style>
    fieldset table tr em {
        color: #ff0000;
    }

    fieldset table tr th {
        text-align: left;
        vertical-align: top;
    }
    </style>

    <a href="<?php echo $this->url(array('action' => 'index'), 'example_action'); ?>"><?php echo BaseZF::escape(_('Back to example index')); ?></a>

    <form method="post" action="<?php echo $this->url();?>">
    <fieldset>
    <legend><?php echo BaseZF::escape(_('Send Mail')); ?></legend>
        <table>
            <tr>
                <th><label for="subject"><?php echo BaseZF::escape(_('Subject:')); ?></label></th>
                <td><?php echo $this->formText('subject', $this->params['subject']); ?></td>
                <td><?php echo (isset($this->paramsErrors['subject']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['subject'])) . '</em>' : '') ?></td>
            </tr>

            <tr>
                <th><label for="to"><?php echo BaseZF::escape(_('To:')); ?></label></th>
                <td><?php echo $this->formText('to', $this->params['to']); ?></td>
                <td><?php echo (isset($this->paramsErrors['to']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['to'])) . '</em>' : '') ?></td>
            </tr>

            <tr>
                <th><label for="from"><?php echo BaseZF::escape(_('From:')); ?></label></th>
                <td><?php echo $this->formText('from', $this->params['from']); ?></td>
                <td><?php echo (isset($this->paramsErrors['from']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['from'])) . '</em>' : '') ?></td>
            </tr>

            <tr>
                <th><label for="cc"><?php echo BaseZF::escape(_('Hidden copy:')); ?></label></th>
                <td><?php echo $this->formText('cc', $this->params['cc']); ?></td>
                <td><?php echo (isset($this->paramsErrors['cc']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['cc'])) . '</em>' : '') ?></td>
            </tr>

            <tr>
                <th><label for="message"><?php echo BaseZF::escape(_('Message:')); ?></label></th>
                <td><?php echo $this->formTextarea('message', $this->params['message'], array('rows' => '5', 'cols' => '50')); ?></td>
                <td><?php echo (isset($this->paramsErrors['message']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['message'])) . '</em>' : '') ?></td>
            </tr>

            <tr>
                <td colspan="3">
                    <?php echo $this->formSubmit('submit', 'Submit'); ?>
                    <?php echo $this->formReset('cancel', 'Cancel'); ?>
                </td>
            </tr>
        </table>
    </fieldset>
    </form>
</div>

<ul>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/sendmail_8php-source.html"><?php echo BaseZF::escape(_('See view source')); ?></a></li>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/classExampleController.html#b2981304036978e5df9e5ccb22f4138e"><?php echo BaseZF::escape(_('See action source')); ?></a></li>
</ul>

